const mongoose = require('mongoose');
const departmentSchema = new mongoose.Schema({
    name: { type: String },
});
// 添加复合索引，优化常用查询场景
departmentSchema.index({ name: 1 });
module.exports = mongoose.model('Department', departmentSchema);
